package com.glory.dgcpcpda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.dgcpcpda.R;
import com.glory.dgcpcpda.entity.LotInfoEntity;

import java.util.List;

public class ElectroplatingRecyclingAdapter extends BaseQuickAdapter<LotInfoEntity.LotBean, BaseViewHolder> {

//    private boolean showEqp = false;
//    private onDeleteListener deleteListener;

    public ElectroplatingRecyclingAdapter(@Nullable List<LotInfoEntity.LotBean> data)  {//, boolean showEqp, onDeleteListener listener
        super(R.layout.adapter_electroplating_recycling,data);
//        this.showEqp = showEqp;
//        this.deleteListener = listener;
    }

    @Override
    protected void convert(BaseViewHolder helper, LotInfoEntity.LotBean item) {
        helper.setText(R.id.tvLotID,String.valueOf(item.getLOTID()))
                .setText(R.id.tvStep,item.getSTEPDESC())
                .setText(R.id.tvPackageType,item.getMAINMATTYPE());

//        helper.getView(R.id.ivDelete).setOnClickListener(view -> {
//            remove(helper.getAdapterPosition());
//            if (deleteListener != null){
//                deleteListener.setOnDeleteListener();
//            }
//        });

    }

//    public interface onDeleteListener{
//        void setOnDeleteListener();
//    }
}
